<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>39scale缩放</title>
    <style>
        .box {
            margin: 100px auto;
            width: 100px;
            height: 100px;
            background-color: seagreen;
            transition: all 0.5s linear;
            /* transform-origin: left bottom; */
        }
        
        .box:hover {
            /* 数字代表倍数 */
            /* transform: scale(5, 1); */
            /* 等比例调整，宽高同时放大2倍 */
            /* transform: scale(2); */
            /* 放大2倍的同时旋转360 */
            transform: scale(2) rotate(360deg);
        }
    </style>
</head>

<body>
    456
    <div class="box"></div>
    123
</body>

</html>